//
//  AppDelegate.swift
//  SinaWeibo
//
//  Created by apple on 15/11/11.
//  Copyright © 2015年 apple. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        window = UIWindow(frame:UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.orangeColor()

        window?.makeKeyAndVisible()
        
        setThemeColor()
        window?.rootViewController = MainViewController()
        
        
        return true
    }
    private func setThemeColor(){
    
    
    UINavigationBar.appearance().tintColor = themecolor
        UITabBar.appearance().tintColor = themecolor
    }

}

